#pragma once

#include "../node/space.h"

OPEN_JLIB_NS


struct Director {

  static Director* instance ();

  bool initEnv ();

  void start (Space* root);

  Vec2i getWindowSize () const;

  void setTimeScale (f64 scale);

  f64 getTimeScale () const;

protected:
  void mainLoop (f64 dt);

protected:
  static __instance;

  Vec2i _windowSize {0, 0};


  bool _initialized {false};
};


CLOSE_JLIB_NS
